package com.mylibrary;

import com.mylibrary.dao.*;
import com.mylibrary.domain.*;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;

@SpringBootApplication
@MapperScan(basePackages = "com.mylibrary.dao")
public class ProjectLibraryApplication {

    public static void main(String[] args) {

        ApplicationContext ac=SpringApplication.run(ProjectLibraryApplication.class, args);

       /* Date d=new Date();
        ReaderInfoDao rid= (ReaderInfoDao) ac.getBean("readerInfoDao");
        ReaderInfo ri=new ReaderInfo("王五","12344","王小明","男",d,
                "北京市","123456","789@qq.com",d);
        rid.insertOne(ri);*/
      /* ReaderInfoDao rid= (ReaderInfoDao) ac.getBean("readerInfoDao");
      List<ReaderLogin> mss= rid.selectToLogIn();
      ReaderLogin readerLogin=new ReaderLogin("jack","jack");
        System.out.println(mss.contains(readerLogin));*/

    }

}
